package com.openwater.tools.math;

public class Ray {

    public Vector3f startPoint = new Vector3f();
    public Vector3f endPoint = new Vector3f();

    private Vector3f direction = new Vector3f();

    public Ray(Vector3f startPoint, Vector3f endPoint) {
        this.startPoint.set(startPoint);
        this.endPoint.set(endPoint);
        initialized();
    }

    private void initialized() {
        direction.set(startPoint.subtraction(endPoint));
    }
}
